FROM python:3-alpine

RUN pip install requests -i https://mirrors.aliyun.com/pypi/simple/

ADD ./datakit_framework.py   /root/scripts/core/
ADD ./cli.py                 /root/scripts/
ADD ./myscript.py            /root/scripts/myscript/

RUN chmod +x /root/scripts/core/datakit_framework.py \
    && chmod +x /root/scripts/cli.py \
    && chmod +x /root/scripts/myscript/myscript.py

CMD ["python", "/root/scripts/cli.py", "--logname=myscript"]
